package extrace.misc.model;

import com.google.gson.annotations.Expose;

import java.io.Serializable;

public class User implements Serializable {
	@Expose private Integer id;
	@Expose private String name;
	@Expose private String userName;
	@Expose private String password;
	@Expose private String telCode;
	@Expose private Integer status;
	@Expose private String nid;
	@Expose private Integer rid;
	@Expose private Transnode transnode;
	@Expose private Role role;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTelCode() {
		return telCode;
	}

	public void setTelCode(String telCode) {
		this.telCode = telCode;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getNid() {
		return nid;
	}

	public void setNid(String nid) {
		this.nid = nid;
	}

	public Integer getRid() {
		return rid;
	}

	public void setRid(Integer rid) {
		this.rid = rid;
	}

	public Transnode getTransnode() {
		return transnode;
	}

	public void setTransnode(Transnode transnode) {
		this.transnode = transnode;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", name='" + name + '\'' +
				", userName='" + userName + '\'' +
				", password='" + password + '\'' +
				", telCode='" + telCode + '\'' +
				", status=" + status +
				", nid='" + nid + '\'' +
				", rid=" + rid +
				", transnode=" + transnode +
				", role=" + role +
				'}';
	}
}
